package com.fund.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum OrderStatus implements BaseEnum {
    PROCESSING(1,"订单处理中"),
    TO_BE_CONFIRMED(2,"待确认"),
    COMPLETED(3,"已完成"),
    FAILED(4,"已失败"),
    CANCELED(5,"已取消");

    @EnumValue
    @JsonValue
    private final Integer value;
    private final String desc;
    OrderStatus(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
    @Override
    public Integer getValue() {
        return this.value;
    }
}
